package com.yejiali.backend.entity.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author:yejiali
 * @Date:2025/5/10-05-10-18:04
 * @Decsription:com.yejiali.backend.entity.dto
 * @Version:1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Schema(description = "登录请求实体")
public class LoginRequestDTO {
    @NotNull(message = "用户名不能为空")
    @Schema(description = "用户名", example = "张三")
    private String username;
    @NotNull(message = "密码不能为空")
    @Size(min = 6,max = 16,message = "密码长度为6-16位")
    @Schema(description = "密码", example = "123456")
    private String password;
}

